﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AGNIS" targetNamespace="http://tempuri.org/AGNIS.xsd" xmlns:mstns="http://tempuri.org/AGNIS.xsd" xmlns="http://tempuri.org/AGNIS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="AGNIS_FORMSConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="AGNIS_FORMSConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.AutoCrid.Properties.Settings.GlobalReference.Default.AGNIS_FORMSConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GENERATED_FORMS_LISTTableAdapter" GeneratorDataComponentClassName="GENERATED_FORMS_LISTTableAdapter" Name="GENERATED_FORMS_LIST" UserDataComponentName="GENERATED_FORMS_LISTTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AGNIS_FORMSConnectionString (Settings)" DbObjectName="AGNIS_FORMS.dbo.GENERATED_FORMS_LIST" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill_Form" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill_Form" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill_Form">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT        ID, IDAA, CRID, DATE_OF_HSCT, FORM_ID, FORM_NUMBER
FROM            GENERATED_FORMS_LIST
WHERE        (FORM_NUMBER = 2804)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="IDAA" DataSetColumn="IDAA" />
              <Mapping SourceColumn="CRID" DataSetColumn="CRID" />
              <Mapping SourceColumn="DATE_OF_HSCT" DataSetColumn="DATE_OF_HSCT" />
              <Mapping SourceColumn="FORM_ID" DataSetColumn="FORM_ID" />
              <Mapping SourceColumn="FORM_NUMBER" DataSetColumn="FORM_NUMBER" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="QUESTIONTableAdapter" GeneratorDataComponentClassName="QUESTIONTableAdapter" Name="QUESTION" UserDataComponentName="QUESTIONTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="AGNIS_FORMSConnectionString (Settings)" DbObjectName="AGNIS_FORMS.dbo.QUESTION" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill_CRID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill_CRID" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill_CRID">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [QUESTION] WHERE (([QUESTION_ID] = @Original_QUESTION_ID) AND ((@IsNull_DATA_ELEMENT_PUBLIC_ID = 1 AND [DATA_ELEMENT_PUBLIC_ID] IS NULL) OR ([DATA_ELEMENT_PUBLIC_ID] = @Original_DATA_ELEMENT_PUBLIC_ID)) AND ((@IsNull_VALUE = 1 AND [VALUE] IS NULL) OR ([VALUE] = @Original_VALUE)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_QUESTION_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="QUESTION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATA_ELEMENT_PUBLIC_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATA_ELEMENT_PUBLIC_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_DATA_ELEMENT_PUBLIC_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="DATA_ELEMENT_PUBLIC_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_VALUE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT        QUESTION_ID, DATA_ELEMENT_PUBLIC_ID, VALUE
FROM            QUESTION
WHERE        (DATA_ELEMENT_PUBLIC_ID IN (2527897, 2527895, 3115881, 3126035))
ORDER BY QUESTION_ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [QUESTION] SET [DATA_ELEMENT_PUBLIC_ID] = @DATA_ELEMENT_PUBLIC_ID, [VALUE] = @VALUE WHERE (([QUESTION_ID] = @Original_QUESTION_ID) AND ((@IsNull_DATA_ELEMENT_PUBLIC_ID = 1 AND [DATA_ELEMENT_PUBLIC_ID] IS NULL) OR ([DATA_ELEMENT_PUBLIC_ID] = @Original_DATA_ELEMENT_PUBLIC_ID)) AND ((@IsNull_VALUE = 1 AND [VALUE] IS NULL) OR ([VALUE] = @Original_VALUE)));
SELECT QUESTION_ID, DATA_ELEMENT_PUBLIC_ID, VALUE FROM QUESTION WHERE (QUESTION_ID = @QUESTION_ID) ORDER BY QUESTION_ID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@DATA_ELEMENT_PUBLIC_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="DATA_ELEMENT_PUBLIC_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_QUESTION_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="QUESTION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DATA_ELEMENT_PUBLIC_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DATA_ELEMENT_PUBLIC_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int64" Direction="Input" ParameterName="@Original_DATA_ELEMENT_PUBLIC_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="0" SourceColumn="DATA_ELEMENT_PUBLIC_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_VALUE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_VALUE" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="VALUE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="QUESTION_ID" ColumnName="QUESTION_ID" DataSourceName="AGNIS_FORMS.dbo.QUESTION" DataTypeServer="bigint" DbType="Int64" Direction="Input" ParameterName="@QUESTION_ID" Precision="0" ProviderType="BigInt" Scale="0" Size="8" SourceColumn="QUESTION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="QUESTION_ID" DataSetColumn="QUESTION_ID" />
              <Mapping SourceColumn="DATA_ELEMENT_PUBLIC_ID" DataSetColumn="DATA_ELEMENT_PUBLIC_ID" />
              <Mapping SourceColumn="VALUE" DataSetColumn="VALUE" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="AGNIS_FORMSConnectionString (Settings)" DbObjectName="AGNIS_FORMS.dbo.QUESTION" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill_Centre" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="Fill_Centre" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="Fill_Centre">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATA_ELEMENT_PUBLIC_ID, QUESTION_ID, VALUE FROM QUESTION WHERE (DATA_ELEMENT_PUBLIC_ID = 2527895)</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="AGNIS_FORMSConnectionString (Settings)" DbObjectName="AGNIS_FORMS.dbo.QUESTION" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillAll" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="FillAll" GetMethodModifier="Public" GetMethodName="GetDataBy1" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="FillAll">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT DATA_ELEMENT_PUBLIC_ID, QUESTION_ID, VALUE FROM QUESTION WHERE (DATA_ELEMENT_PUBLIC_ID IN (2527895, 2527897, 3126035, 3115881)) ORDER BY QUESTION_ID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="AGNIS" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="AGNIS" msprop:Generator_DataSetName="AGNIS" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="GENERATED_FORMS_LIST" msprop:Generator_UserTableName="GENERATED_FORMS_LIST" msprop:Generator_RowDeletedName="GENERATED_FORMS_LISTRowDeleted" msprop:Generator_RowChangedName="GENERATED_FORMS_LISTRowChanged" msprop:Generator_RowClassName="GENERATED_FORMS_LISTRow" msprop:Generator_RowChangingName="GENERATED_FORMS_LISTRowChanging" msprop:Generator_RowEvArgName="GENERATED_FORMS_LISTRowChangeEvent" msprop:Generator_RowEvHandlerName="GENERATED_FORMS_LISTRowChangeEventHandler" msprop:Generator_TableClassName="GENERATED_FORMS_LISTDataTable" msprop:Generator_TableVarName="tableGENERATED_FORMS_LIST" msprop:Generator_RowDeletingName="GENERATED_FORMS_LISTRowDeleting" msprop:Generator_TablePropName="GENERATED_FORMS_LIST">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
              <xs:element name="IDAA" msprop:Generator_UserColumnName="IDAA" msprop:Generator_ColumnPropNameInRow="IDAA" msprop:Generator_ColumnVarNameInTable="columnIDAA" msprop:Generator_ColumnPropNameInTable="IDAAColumn" type="xs:int" />
              <xs:element name="CRID" msprop:Generator_UserColumnName="CRID" msprop:Generator_ColumnPropNameInRow="CRID" msprop:Generator_ColumnVarNameInTable="columnCRID" msprop:Generator_ColumnPropNameInTable="CRIDColumn" type="xs:decimal" minOccurs="0" />
              <xs:element name="DATE_OF_HSCT" msprop:Generator_UserColumnName="DATE_OF_HSCT" msprop:Generator_ColumnPropNameInRow="DATE_OF_HSCT" msprop:Generator_ColumnVarNameInTable="columnDATE_OF_HSCT" msprop:Generator_ColumnPropNameInTable="DATE_OF_HSCTColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="FORM_ID" msprop:Generator_UserColumnName="FORM_ID" msprop:Generator_ColumnPropNameInRow="FORM_ID" msprop:Generator_ColumnVarNameInTable="columnFORM_ID" msprop:Generator_ColumnPropNameInTable="FORM_IDColumn" type="xs:decimal" />
              <xs:element name="FORM_NUMBER" msprop:Generator_UserColumnName="FORM_NUMBER" msprop:Generator_ColumnPropNameInRow="FORM_NUMBER" msprop:Generator_ColumnVarNameInTable="columnFORM_NUMBER" msprop:Generator_ColumnPropNameInTable="FORM_NUMBERColumn" type="xs:decimal" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="QUESTION" msprop:Generator_UserTableName="QUESTION" msprop:Generator_RowDeletedName="QUESTIONRowDeleted" msprop:Generator_RowChangedName="QUESTIONRowChanged" msprop:Generator_RowClassName="QUESTIONRow" msprop:Generator_RowChangingName="QUESTIONRowChanging" msprop:Generator_RowEvArgName="QUESTIONRowChangeEvent" msprop:Generator_RowEvHandlerName="QUESTIONRowChangeEventHandler" msprop:Generator_TableClassName="QUESTIONDataTable" msprop:Generator_TableVarName="tableQUESTION" msprop:Generator_RowDeletingName="QUESTIONRowDeleting" msprop:Generator_TablePropName="QUESTION">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="QUESTION_ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="QUESTION_ID" msprop:Generator_ColumnPropNameInRow="QUESTION_ID" msprop:Generator_ColumnVarNameInTable="columnQUESTION_ID" msprop:Generator_ColumnPropNameInTable="QUESTION_IDColumn" type="xs:long" />
              <xs:element name="DATA_ELEMENT_PUBLIC_ID" msprop:Generator_UserColumnName="DATA_ELEMENT_PUBLIC_ID" msprop:Generator_ColumnPropNameInRow="DATA_ELEMENT_PUBLIC_ID" msprop:Generator_ColumnVarNameInTable="columnDATA_ELEMENT_PUBLIC_ID" msprop:Generator_ColumnPropNameInTable="DATA_ELEMENT_PUBLIC_IDColumn" type="xs:long" minOccurs="0" />
              <xs:element name="VALUE" msprop:Generator_UserColumnName="VALUE" msprop:Generator_ColumnPropNameInRow="VALUE" msprop:Generator_ColumnVarNameInTable="columnVALUE" msprop:Generator_ColumnPropNameInTable="VALUEColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:QUESTION" />
      <xs:field xpath="mstns:QUESTION_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>